package com.acquisition.param.domain;

import com.acquisition.task.database.annotation.Column;
import com.acquisition.task.database.annotation.Id;
import com.acquisition.task.database.annotation.Table;

/**
 * 参数数据
 *
 * @author wuqiwei
 * @date 2021/01/01
 */
@Table("Param")
public class Param {

	/**
	 * 自增id
	 */
	@Id("id")
	private Integer id;

	/**
	 * 对应参数的key
	 */
	@Column("key")
	private String key;

	/**
	 * 对应参数的json数据值
	 */
	@Column("value")
	private String value;

	/**
	 * 该条参数是否上传<br>
	 * 0-未上传，需要上传；1-已上传，无需上传<br>
	 */
	@Column("type")
	private Integer type;

	public Param() {
		super();
	}

	public Param(Integer id, String key, String value, Integer type) {
		super();
		this.id = id;
		this.key = key;
		this.value = value;
		this.type = type;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "Param [id=" + id + ", key=" + key + ", value=" + value + ", type=" + type + "]";
	}

}
